package com.cn.bukeManage.controller;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.cn.bukeManage.service.PurchaseService;

//这是采购管理
@Controller
@RequestMapping("/purchaseM")
public class PurchaseController {
	@Resource
	private PurchaseService purchaseService;
	@RequestMapping("/purchase")
	public String purchase(Model model){
		List<Map<String,Object>> list= purchaseService.getAllPurchase(model);
		model.addAttribute("oneMenu", "purchaseM");
		model.addAttribute("twoMenu", "purchase");
		model.addAttribute("goodsList",list);
		return "purchase/purchase";
	}

	
}
